package cn.itsource.hrm.client;

import cn.itsource.hrm.domain.LoginUser;
import cn.itsource.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("/loginUser")
@FeignClient(value = "AUTH-SERVICE",fallbackFactory = LoginUserClientfallbackFactory.class)
public interface LoginUserClient {

    /**
     * 保存和修改公用的
     * @param loginUser  传递的实体
     * @return Ajaxresult转换结果
     */
    @PutMapping
    AjaxResult addOrUpdate(@RequestBody LoginUser loginUser);
}
